package string;

import java.util.Scanner;

public class SearchString {
    public static void main(String[] args) {
        Scanner std=new Scanner(System.in);
        System.out.print("字符串s1: ");
        String s1=std.nextLine();
        System.out.print("字符串s2: ");
        String s2=std.nextLine();

        int ind=s1.indexOf(s2);
        if (ind==-1)
            System.out.println("s1中不包括s2");
        else
            System.out.println("s1中的第"+(ind+1)+"个元素包含s2");


    }
}
